using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Doanhthutheoloaiphong : BusinessBase<string>
    {
        #region Declarations

		private int? _thang = null;
		private float? _tongDoanhThu = null;
		
		
		private IList<Chitietdoanhthutheoloaiphong> _chitietdoanhthutheoloaiphongs = new List<Chitietdoanhthutheoloaiphong>();
		
		#endregion

        #region Constructors

        public Doanhthutheoloaiphong() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_thang);
			sb.Append(_tongDoanhThu);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int? Thang
        {
            get { return _thang; }
			set
			{
				OnThangChanging();
				_thang = value;
				OnThangChanged();
			}
        }
		partial void OnThangChanging();
		partial void OnThangChanged();
		
		public virtual float? TongDoanhThu
        {
            get { return _tongDoanhThu; }
			set
			{
				OnTongDoanhThuChanging();
				_tongDoanhThu = value;
				OnTongDoanhThuChanged();
			}
        }
		partial void OnTongDoanhThuChanging();
		partial void OnTongDoanhThuChanged();
		
		public virtual IList<Chitietdoanhthutheoloaiphong> Chitietdoanhthutheoloaiphongs
        {
            get { return _chitietdoanhthutheoloaiphongs; }
            set
			{
				OnChitietdoanhthutheoloaiphongsChanging();
				_chitietdoanhthutheoloaiphongs = value;
				OnChitietdoanhthutheoloaiphongsChanged();
			}
        }
		partial void OnChitietdoanhthutheoloaiphongsChanging();
		partial void OnChitietdoanhthutheoloaiphongsChanged();
		
        #endregion
    }
}
